package demo1;

import java.util.Comparator;

public class NameCompare implements Comparator<Student> {

    @Override
    public int compare(Student o1, Student o2) {
        //return o1.compareTo(o2);
        return String.CASE_INSENSITIVE_ORDER.compare(o1.name,o2.name);
    }
}
